package com.xiguanlezz.cn.client.naming.remote;

import com.xiguanlezz.cn.api.naming.pojo.Instance;
import com.xiguanlezz.cn.api.naming.pojo.ServiceInfo;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/11/18 17:27
 * @Description：客户端通通信代理对象接口定义
 */
public interface NamingClientProxy {
    void registerService(String serviceName, String groupName, Instance instance) throws Exception;

    void deregisterService(String serviceName, String groupName, Instance instance) throws Exception;

    ServiceInfo subscribe(String serviceName, String groupName, String clusters) throws Exception;

    void unsubscribe(String serviceName, String groupName, String clusters) throws Exception;

    boolean isSubscribed(String serviceName, String groupName, String clusters) throws Exception;

}
